﻿using Dm;
using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FinancialManagement.Domain.Model
{
    /// <summary>
    /// 销售合同明细表
    /// </summary>
    [SugarTable("SaleContractProduct")]
    public class SaleContractProduct : Audit
    {

        /// <summary>
        /// 销售合同产品id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)] // 主键和自增
        public int SaleContractProductId { get; set; }
        public string? SCcontractNumber { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int? ProductId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? PName { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string? PNumber { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public  int? SCPNum { get; set; }

        /// <summary>
        /// 未税单价
        /// </summary>
        public decimal? TaxPrice { get; set; }
        /// <summary>
        /// 折扣
        /// </summary>
        public int? Discount { get; set; }
        /// <summary>
        /// 票据类型
        /// </summary>
        public string? BillType { get; set; }
        /// <summary>
        /// 明细优惠
        /// </summary>
        public string? DetailsPreferential { get; set; }
        /// <summary>
        /// 税额
        /// </summary>
        public decimal? TaxLines { get; set; }
        /// <summary>
        /// 交货日期
        /// </summary>
        public DateTime? DeliveryTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? SRemark { get; set; }
        /// <summary>
        /// 库存信息
        /// </summary>
        public string? SInventory { get; set; }
    }
}
